<template>
  <view class="normal-login-container">

    <view class="item-wrap" style="margin-bottom: 0">
      <view class="lineBottom10">
        <uni-section title="客户信息" type="line"/>
      </view>

      <view style="margin: 8rpx 20rpx 8rpx 20rpx">
        <uni-forms labelWidth="auto">
			<uni-forms-item label="客户编号:">
			  <text  >{{ isNoEmpty(ruleForm.customerDetailVo.customerCode) }}</text>
			</uni-forms-item>
			  <uni-forms-item label="客户名称:">
				<text >{{ isNoEmpty(ruleForm.customerDetailVo.customerName)  }}</text>
			  </uni-forms-item>

			  <uni-forms-item label="业务类型:">
				<text >{{ isNoEmpty(ruleForm.customerDetailVo.businessScope)  }}</text>
			  </uni-forms-item>

			  <uni-forms-item label="客户等级:">
				<text >{{ isNoEmpty(ruleForm.customerDetailVo.customerLevel)  }}</text>
			  </uni-forms-item>

			  <uni-forms-item label="客户标签:">
				<text >{{ isNoEmpty(ruleForm.customerDetailVo.customerLabel)  }}</text>
			  </uni-forms-item>

			  <uni-forms-item label="业务担当姓名:">
				<text >{{ isNoEmpty(ruleForm.orderInfoVo.businessPersonName) }}</text>
			  </uni-forms-item>

			  <uni-forms-item label="申请时间:">
				<text >{{ isNoEmpty(ruleForm.orderInfoVo .applyTime) }}</text>
			  </uni-forms-item>
        </uni-forms>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'customerInfo',//基础信息
  dicts: ['customer_type', 'car_business_type'],
  props: {
   value: {
     type: Object,
     default: {}
   }
  },
 computed: {
   ruleForm: {
     get() {
       let that = this
       const proxy = new Proxy(that.value, {
         get(target, key) {
           return Reflect.get(target, key)
         },
         set(target, key, value) {
           that.$emit('input', {...target, [key]: value})
           return true
         }
       })
       return proxy
     }
   },
 },
  data() {
    return {};
  },
  created() {
		console.log(this.ruleForm,'ruleForm')
  },
  mounted() {
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.car-wrap {
  display: flex;
  flex-direction: column;
  padding: 20rpx 20rpx 20rpx 0;
  border: 1px solid #dadada;
  margin: 10rpx 20rpx;
  border-radius: 8rpx;

}


</style>


